<?php/* * Created on Jun 4, 2009 * * To change the template for this generated file go to * Window - Preferences - PHPeclipse - PHP - Code Templates */require_once ('Dao.php');require_once ('model/links.php');class ArchiveLinkLoader extends Dao{	const GET_MAIN_CONTENT_SQL = "select STORY_ID, STORY_TITLE, DATED from STORIES ORDER BY DATED DESC";	function getSideContent($linkType)	{		$stmt = $this->mysqli->prepare(self :: GET_MAIN_CONTENT_SQL);		$stmt->execute();		$strongText = null;		$storyId = null;		$dated = null;		$storyTitle = null;		$href = null;		$stmt->bind_result($storyId, $storyTitle, $dated);		$content = array ();		$index = 0;		$returnText = null;		$links = array();		while ($stmt->fetch())		{			$link = new ALink($storyId,$storyTitle, $linkType,  $dated, $href);			$links[$index++] = $link;		}		return $links;	}}?>
